import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Data from '../views/data.vue'
import Record from '../views/record/record.vue'
import Lesson from '../views/lesson.vue'
import Practise from '../views/practise/practise.vue'
import My from '../views/login/my.vue'
import Zhezhao from "../views/zhezhao"
import Gosearch from '../views/gosearch.vue'
import Login from '../views/login/login.vue'
import Smslogin from '../views/login/Smslogin.vue'
import Mmlogin from '../views/login/Mmlogin.vue'
import Oto from '../views/oto.vue'
import Time from '../views/time.vue'
import Lessondetail from '../views/lessondetail.vue'
import Lessondetailyy from '../views/lessondetailyy.vue'
import Personal from '../views/login/personal.vue'
import Out from '../views/login/out.vue'
import Yuyuedetail from "../views/yuyuedetail"

import Person from '../views/login/person.vue'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component:Home
  },
  {
    path: '/data',
    name: 'Data',
    component:Data,
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/record',
    name: 'Record',
    component:Record
  },
  
  {
    path: '/practise',
    name: 'Practise',
    component: Practise
  },
  {
    path: '/lesson',
    name: 'Lesson',
    component:Lesson
  },
  {
    path: '/my',
    name: 'My',
    component:My
  },

  {
    path: '/zhezhao',
    name: 'Zhezhao',
    component:Zhezhao
  },
  {
    path: '/gosearch',
    name: 'Gosearch',
    component:Gosearch
  },
  {
    path: '/login',
    name: 'Login',
    component:Login
  },
  {
    path: '/Smslogin',
    name: 'Smslogin',
    component:Smslogin
  },
  {
    path: '/Mmlogin',
    name: 'Mmlogin',
    component:Mmlogin
  },
  {
    path: '/oto',
    name: 'Oto',
    component:Oto
  },
  {
    path: '/time',
    name: 'Time',
    component:Time
  },
  {
    path: '/lessondetail',
    name: 'Lessondetail',
    component:Lessondetail
  },
  {
    path: '/lessondetailyy',
    name: 'Lessondetailyy',
    component:Lessondetailyy
  },
  {
    path: '/personal',
    name: 'Personal',
    component:Personal,
  },
  {
    path: '/out',
    name: 'Out',
    component:Out,
    
  },
  {
    path: '/setinfo',
    name: 'Setinfo',
    component:()=>import('../views/login/setinfo.vue'),
  },
  {
    path: '/yuyuedetail',
    name: 'Yuyuedetail',
    component:Yuyuedetail
  },
  {
    path: '/person',
    name: 'Person',
    component:Person,
  },
]



const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
